<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 1000px;
            height: 1000px;      
            background-color: bisque;
            position: relative;
            margin: 0 auto;
        }
        .box2{
            display: block;
            width: 100px;
            height: 100px;
            background-color: aqua;           
            position: absolute;
            left:0px;
            top:0px;
            animation: mm 5s infinite linear;
        }
        @keyframes mm {
        
            25%{
                  transform: translateX(500px);  
            }

            50%{
                transform: translate(500px,500px);
            }

            75%{
                transform: translate(0,500px);
            }
            
            100%{
                transform: translate(0,0);
            }
        }
    </style>
</head>
<body>
    <div class="box1">
        <div  class="box2"></div>
    </div>
</body>
</html>